import 'package:flutter/foundation.dart';

/// FileName log_util
///
/// @Author huangyong
/// @Date 2023/2/7 13:44
///
/// @Description 日志工具类
class LogUtil {
  LogUtil._();

  static LogUtil? _instance;

  static LogUtil _logUtil() {
    return _instance ??= LogUtil._();
  }

  factory LogUtil() => _logUtil();

  static i(String tag, String? msg) {
    if (kDebugMode) {
      print("$tag $msg");
    }
  }
}
